//
//  WALocation.h
//  WeatherApp
//
//  Created by Yuliya Grasevych on 23.07.14.
//  Copyright (c) 2014 Yuliya Grasevych. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

typedef enum {
    
    WANorthernHemisphere = 0,
    WASouthernHemisphere
}WAHemisphere;

extern NSString *const kWALocationDidUpdate;

@interface WALocation : NSObject <NSCopying>

@property (nonatomic) CLLocation *location;
@property (nonatomic) NSString *woeid;
@property (nonatomic) NSString *country;
@property (nonatomic) NSString *district;
@property (nonatomic) NSString *city;
@property (nonatomic) NSString *stringRepresentation;
@property (nonatomic, readonly) WAHemisphere hemisphere;

-(id)initWithLocation:(CLLocation *)location;
-(id)initWithWoeid:(NSString *)woeid;
-(BOOL)isEqualToLocation:(WALocation *)location;

@end
